package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;


import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;


import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-17
 */
@TableName("org_class")
public class OrgClass extends Model<OrgClass> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 信息id
     */
	@TableField("info_id")
	private String infoId;

    /**
     * 教师id
     */
	@TableField("teacher_id")
	private String teacherId;

	/**
	 * 课程id
	 */
    @TableField("class_type_id")
	private String classTypeId;

    /**
     * 课程开始时间
     */
	@TableField("class_start_time")
	private Date classStartTime;
    /**
     * 课程结束时间
     */
	@TableField("class_end_time")
	private Date classEndTime;
    /**
     * 实收人数
     */
	@TableField("class_is_student")
	private Integer classIsStudent;
    /**
     * 预收人数
     */
	@TableField("class_want_student")
	private Integer classWantStudent;
    /**
     * 课程简介
     */
	@TableField("class_introduct")
	private String classIntroduct;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;


	//机构名称
	@TableField(exist = false)
	private String infoName;

	//课程名称
	@TableField(exist = false)
	private String className;

	//教师名称
	@TableField(exist = false)
	private String teacherName;

	@TableField("class_pic")
	private String classPic;

	public String getClassPic() {
		return classPic;
	}

	public void setClassPic(String classPic) {
		this.classPic = classPic;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getInfoName() {
		return infoName;
	}

	public void setInfoName(String infoName) {
		this.infoName = infoName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getInfoId() {
		return infoId;
	}

	public void setInfoId(String infoId) {
		this.infoId = infoId;
	}



	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getClassTypeId() {
		return classTypeId;
	}

	public void setClassTypeId(String classTypeId) {
		this.classTypeId = classTypeId;
	}

	public Date getClassStartTime() {
		return classStartTime;
	}

	public void setClassStartTime(Date classStartTime) {
		this.classStartTime = classStartTime;
	}

	public Date getClassEndTime() {
		return classEndTime;
	}

	public void setClassEndTime(Date classEndTime) {
		this.classEndTime = classEndTime;
	}

	public Integer getClassIsStudent() {
		return classIsStudent;
	}

	public void setClassIsStudent(Integer classIsStudent) {
		this.classIsStudent = classIsStudent;
	}

	public Integer getClassWantStudent() {
		return classWantStudent;
	}

	public void setClassWantStudent(Integer classWantStudent) {
		this.classWantStudent = classWantStudent;
	}

	public String getClassIntroduct() {
		return classIntroduct;
	}

	public void setClassIntroduct(String classIntroduct) {
		this.classIntroduct = classIntroduct;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
